package com.hiof.heartrate;

import com.hiof.location.GPSManager;
import com.hiof.location.GoogleGpsManager;
import com.hiof.location.SimulatorGpsManager;
import com.hiof.settings.SettingManager;

/**
 * Created with IntelliJ IDEA.
 * User: manish
 * Date: 4/17/12
 * Time: 6:55 PM
 * To change this template use File | Settings | File Templates.
 */
public class HeartRateManagerFactory {
    //TODO: factory method pattern
    public static HeartRateManager getHearRateManager() {
        //TODO: Check Preference for setting
        if (SettingManager.getInstance().getSimulation()){
            return SimulatorHearRateManager.getInstance();
        }
        else
            return AntPlusHeartRateManager.getInstance();
    }
}
